<?php

namespace App\Model;
use App\User;
use Illuminate\Database\Eloquent\Model;

class Blog extends Model
{
    //设置不允许批量填充的数据字段
    protected $guarded=[];

    public function user(){
        return $this->belongsTo(User::class,'user_id','id');
    }
}
